/**
 * Created by zhaoxk on 2017/2/23.
 */
export default {
    namespace: 'frame',
    state: {
        tabBarCur: 'home',
        tabBar: [
            {
                label: '首页',
                value: 'home',
            },
            {
                label: '消息',
                value: 'message',
            },
            {
                label: '通讯录',
                value: 'connect',
            },
            {
                label: '我的',
                value: 'my',
            },
        ],
    },
    reducers: {
        changeTabBar(state, { payload: tabBarCur }) {
            return {
                ...state,
                tabBarCur,
            };
        }
    },
    effects: {},
    subscriptions: {},
};
